package com.cf.game.group.dao;

import com.cf.crud.mapper.BaseMapper;
import com.cf.game.group.model.GroupUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GroupUserMapper extends BaseMapper<GroupUser> {
    @Select("select groupId from groupUser where userId =#{userId}")
    List<Long> selectByUserId(@Param("userId") long userId);

    @Select("select userId from groupUser where groupId =#{groupId}")
    List<Long> selectByGroupId(@Param("groupId") long groupId);
}
